﻿/****************************** Module Header ******************************\
 * Module Name:  tGeneralCatalog.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
	/// <summary>
    /// 通用-分类 数据实体类
	/// </summary>
	[DBTable(Common="tGeneralCatalog")]
	public class tGeneralCatalog
	{
		/// <summary>
		/// Guid编号
		/// </summary>
		public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

		[DBColumn(Alias="Guid编号", IsKey=true, DefaultValue="newid()")]
		private Guid? _ID;

		/// <summary>
        /// 分类名称
		/// </summary>
		public string Name { get { return _Name; } set { _Name = value; } }

        [DBColumn(Alias = "分类名称", Length = "32")]
		private string _Name;

		/// <summary>
        /// 上级分类的编号
		/// </summary>
		public Guid ParentID { get { return _ParentID ?? default(Guid); } set { _ParentID = value; } }

        [DBColumn(Alias = "上级分类的编号", DefaultValue = "00000000-0000-0000-0000-000000000000")]
		private Guid? _ParentID;

		/// <summary>
        /// 类型编号
		/// </summary>
		public Guid TypeID { get { return _TypeID ?? default(Guid); } set { _TypeID = value; } }

        [DBColumn(Alias = "类型编号", CanBeNull = true)]
        private Guid? _TypeID;

        /// <summary>
        /// 子分类数量
        /// </summary>
        public int ItemCount { get { return _ItemCount ?? default(int); } set { _ItemCount = value; } }

        [DBColumn(Alias = "子分类数量", DefaultValue = "0")]
        private int? _ItemCount;

        /// <summary>
        /// 浏览次数
        /// </summary>
        public int VisitCount { get { return _VisitCount ?? default(int); } set { _VisitCount = value; } }

        [DBColumn(Alias = "浏览次数", DefaultValue = "0")]
        private int? _VisitCount;

		/// <summary>
        /// 页面关键词
		/// </summary>
		public string MetaKeywords { get { return _MetaKeywords; } set { _MetaKeywords = value; } }

        [DBColumn(Alias = "页面关键词", CanBeNull = true, Length = "32")]
		private string _MetaKeywords;

		/// <summary>
        /// 页面描述
		/// </summary>
		public string MetaDescription { get { return _MetaDescription; } set { _MetaDescription = value; } }

        [DBColumn(Alias = "页面描述", CanBeNull = true, Length = "128")]
		private string _MetaDescription;

		/// <summary>
        /// 分类图片
		/// </summary>
		public string ImageURL { get { return _ImageURL; } set { _ImageURL = value; } }

        [DBColumn(Alias = "分类图片", CanBeNull = true, Length = "255")]
		private string _ImageURL;

		/// <summary>
        /// 分类链接
		/// </summary>
		public string Link { get { return _Link; } set { _Link = value; } }

        [DBColumn(Alias = "分类链接", CanBeNull = true, Length = "255")]
        private string _Link;

        /// <summary>
        /// 用户帐号
        /// </summary>
        public string UserName { get { return _UserName; } set { _UserName = value; } }

        [DBColumn(Alias = "用户帐号", CanBeNull = true, Length = "32")]
        private string _UserName;

        /// <summary>
        /// 访问权限
        /// <para>null=不限,friend=好友</para>
        /// </summary>
        public string AccessPermission { get { return _AccessPermission; } set { _AccessPermission = value; } }

        [DBColumn(Alias = "访问权限", CanBeNull = true, Length = "Max")]
        private string _AccessPermission;

		/// <summary>
		/// 扩展标签
		/// </summary>
		public string ExTags { get { return _ExTags; } set { _ExTags = value; } }

		[DBColumn(Alias="扩展标签", Length="16")]
		private string _ExTags;

		/// <summary>
		/// 排列次序
		/// </summary>
		public short Ordinal { get { return _Ordinal ?? default(short); } set { _Ordinal = value; } }

		[DBColumn(Alias="排列次序", DefaultValue="999")]
		private short? _Ordinal;

		/// <summary>
		/// 状态
		/// </summary>
		public short State { get { return _State ?? default(short); } set { _State = value; } }

		[DBColumn(Alias="状态", DefaultValue="0")]
		private short? _State;

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

		[DBColumn(Alias="创建时间", DefaultValue="getdate()")]
		private DateTime? _CreatedTime;

		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }

		[DBColumn(Alias="最后更新时间", CanBeNull=true)]
		private DateTime? _ModifiedTime;

		/// <summary>
		/// 是否删除
		/// </summary>
		public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

		[DBColumn(Alias="是否删除", DefaultValue="0")]
		private bool? _IsDeleted;

		/// <summary>
		/// 网站标签
		/// </summary>
		public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

		[DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
		private string _SiteTag;

	}
}
